home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Windows 95 with MFC
/
Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso
/
CODE
/
Chap13
/
GridDemo
/
GridDemo.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-05
|
1KB
|
57 lines
//***********************************************************************
//
// GridDemo.h
//
//***********************************************************************
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance ();
};
class CMainWindow : public CFrameWnd
{
private:
int m_cx;
int m_cy;
int m_nWeight;
public:
CMainWindow ();
protected:
afx_msg void OnPaint ();
afx_msg void OnOptionsSettings ();
afx_msg void OnOptionsExit ();
DECLARE_MESSAGE_MAP ()
};
class CMyToolTipCtrl : public CToolTipCtrl
{
public:
BOOL AddWindowTool (CWnd*, LPCTSTR);
BOOL AddRectTool (CWnd*, LPCTSTR, LPCRECT, UINT);
};
class CSettingsDialog : public CDialog
{
private:
CMyToolTipCtrl m_ctlTT;
public:
int m_cx;
int m_cy;
int m_nWeight;
CSettingsDialog (CWnd* pParentWnd = NULL) :
CDialog (IDD_SETTINGSDLG, pParentWnd) {}
virtual BOOL OnInitDialog ();
protected:
virtual void DoDataExchange (CDataExchange*);
virtual void OnOK ();
};